<template>
	<view class="">
		<goodlist :listarr="listarr"></goodlist>
	</view>
</template>

<script>
	import goodlist from "../../components/goodlist.vue"
	export default{
		data(){
			return{
				listarr:[]
			}
		},
		components:{
			goodlist
		},
		onLoad() {
		   this.getlist()  //获取列表
		},
		methods:{
			// 获取列表
			async getlist(){
				const res=await this.$myRequest({
					url:"/home/floordata"
				})
				// console.log(res.data.message[0].product_list)
				this.listarr=res.data.message[0].product_list
			  },
		}
	}
</script>

<style>
</style>
